<%@page import="com.yunhuakeji.wddx.utils.IsNull"%>
<%@page import="net.sf.json.JSONObject"%>
<%@page import="net.sf.json.JSONArray"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
JSONObject obj;
try{
     //obj = JSONObject.fromObject(request.getAttribute("result"));
     obj = JSONObject.fromObject(JSONObject.fromObject(JSONObject.fromObject(request.getAttribute("result")).get("content")).get("message"));
}catch(Exception e){
     obj = null;
}
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>签到报告</title>
     <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no,minimum-scale=1.0,maximum-scale=1.0">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="css/myreport.css">
	<script src="js/jquery.min.js"></script>
	<script src="js/echarts.min.js" type="text/javascript"></script>
	<script src="js/myReport.js"></script>
  </head>
  <style>
  	
  </style>
  <body style="background:#eeeeee;">
  	<%if(!obj.isNullObject()){%>
  	<script>
  	     var _pm = "<%=obj.getString("pm")%>";
  	     //本周数据
  	     var _xdataWeek = <%=obj.getJSONArray("chartByDay").getJSONObject(0).getString("xAxisData")%>;
  	     var _ydataWeek = <%=obj.getJSONArray("chartByDay").getJSONObject(0).getString("seriesData")%>;
  	     //本月数据
  	     var _xdataMonth = <%=obj.getJSONArray("chartByMonth").getJSONObject(0).getString("xAxisData")%>;
  	     var _ydataMonth = <%=obj.getJSONArray("chartByMonth").getJSONObject(0).getString("seriesData")%>;
  	</script>
  	<!-- home -->
  	<div class="daily" style="background:white;">
    	<div class="daily-date">
    		<a><img alt="" src="images/daily-calendar.png"><span>第<%=obj.getString("djz") %>周</span></a>
    		<a><%=obj.getString("xqj") %>	<%=obj.getString("rq") %></a>
    		<div class="clear"></div>
    	</div>
    	<div class="text-center">
    		<canvas id="gaugechart"></canvas>
    	</div>
    	<div class="daily-describe">
    		<ul>
    			<li><a>今日课程:<span><%=obj.getString("jrkc") %></span>节</a></li>
    			<li><a>今日签到:<span><%=obj.getString("jrqd") %></span>次</a></li>
    			<li><a>签到率:<span><%=obj.getString("qdl") %></span></a></li>
    			<div class="clear"></div>
    		</ul>
    	</div>
  	</div>
  	<div class="daily-month mt1em bg-color-white">
    		<ul>
    			<li>
    				<div class="week">
    					七日<span></span>
    				</div>
    			</li>
    			<li>
    				<div class="month">
    					 本月<span></span>
    				</div>
    			</li>
    			<div class="clear"></div>
    		</ul>
    		<div id="echart">
    		
    		</div>
    </div>
    <%} %>
 <script src="js/myreport/sign.js"></script>
  </body>
</html>
